Makes the wall tile at (x, y) a sliding door and opens it (true) or closes it (false) over about half a second.
Game Boy: not available
Game Boy Color: not available
On other consoles this differs: see Side by side and How the consoles differ.
view3d_door(x, y, open)| Name | Type |
|---|---|
x | real |
y | real |
open | bool |
Nothing.
Makes the wall tile at (x, y) (room pixels counted from the room's top-left corner; any place inside the tile) a sliding door and opens it (true) or closes it (false) over about half a second.
The tile keeps its wall picture, which slides sideways as the door opens. A door that is not open blocks the camera and every ray; it is open enough to walk through when it has slid three quarters of the way. Nothing happens at a place that is not a wall. There are at most 16 doors, and asking to open a door that is already open does nothing.
// open the door in the tile at column 5, row 3 (room pixels 44, 28) when the camera is near
if (dist_to(view3d_x(), view3d_y(), 44, 28) < 24) {
view3d_door(44, 28, true);
}The door slides open as the camera comes within three tiles of it.
The tile keeps its wall picture, which slides sideways as the door opens. A door that is not open blocks the camera and every ray; it is open enough to pass when it has slid three quarters of the way. Nothing happens at a place that is not a wall. At most 16 doors. Opening a door that is already open does nothing.